package io;

import java.io.File;

public class IODemo3 {
    public static void main(String[] args) throws InterruptedException {
        File file = new File("./test.txt");
        //boolean ret = file.delete();
        //System.out.println("ret = " + ret);

        //等程序结束后再删除文件
        file.deleteOnExit();
        Thread.sleep(3000);
    }
}
